<html>
<body><br>
<?php
if (count($this->paginator)):
    $count = 0;
        echo "<table border='0' width='100%' cellspacing='10' cellpadding='10'><tr>";
    foreach ($this->paginator as $pro):
    if ($count == 3){
        echo "</tr><tr>";
        $count = 0;
    }
    $count++;
?>
  <td align="center" style="border:1px; border:#800080 1px dotted;">
  <a href="<?php echo $this->url(array('module'=>'default','controller'=>'index',
            'action'=>'view','id'=>$pro->id)); ?>"><?php echo $this->escape($pro->name);?></a><br>
    <img src ="<?php echo $this->baseUrl()."/images/product/".
                $this->escape($pro->url);?>" height="80"><br>
    <font color="red">Price:</font> <b><?php echo $this->escape($pro->price);?>$</b><br>
    <a href="<?php echo $this->url(array('controller'=>'order',
            'action'=>'addproduct','id'=>$pro->id)); ?>">Add to cart</a>
  </td>
<?php endforeach; echo "</tr></table>"; endif; ?>
<?= $this->paginationControl($this->paginator,
                             'Sliding',
                             'pagination.phtml'); ?>
</body>
</html>